{% extends "wiki/base.html" %}
{% if category %}
  {% set title = category %}
{% else %}
  {% set title = _('All Articles') %}
{% endif %}
{% set crumbs = [(None, title)] %}

{% block content %}
  <article id="document-list" class="main">
    <h1>{{ title }}</h1>
    {% if documents.object_list %}
      <ul class="documents">
        {% for doc in documents.object_list %}
          <li><a href="{{ doc.get_absolute_url() }}">{{ doc.title }}</a></li>
        {% endfor %}
      </ul>
      {{ documents|paginator }}
    {% else %}
      <p>{{ _('There are no articles.') }}</p>
    {% endif %}
  </article>
{% endblock %}
